Helpful Information
 
 
Category: Javascript
Javascript --> Php

Hello Everyone-

I am trying to interface my javascript slideshow with my mysql database. I have heard multiple times that there is a way to do this with cookies, i was hoping someone could give me some input. There are multiple slideshows on my site, each with their own folder. I created a custom function that created a cookie with the slide number on it. I figured that after that i could load another page that would use php to get the cookie data. I would then store the page number along with the slideshow name in my database, and when the user logs in, that cookie is put on their computer using php. Then, ideally, the javascript slideshow would check for the cookie, and then if it found a value, would go to that slide number.

I have a basic idea of what to do-- i just dont know how i can use the cookie to transfer variables between php and javascript.

Thank you very much in advance.

Austin










privacy (GDPR)